﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrdersEdit.aspx.cs" Inherits="Web.DocumentsManage.OrderEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订单编辑</title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
    <link href="../extjs/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
    <link href="../css/style_of_1024.css" rel="stylesheet" rev="stylesheet" type="text/css" />
    <%
        string contextPath = "/" == HttpContext.Current.Request.ApplicationPath ? "/" : HttpContext.Current.Request.ApplicationPath + "/";
    %>

    <script type="text/javascript">
　        var strPath = "<%=contextPath %>";
    </script>

    <script type="text/javascript" src="<%=contextPath %>extjs/adapter/ext/ext-base.js"></script>

    <script type="text/javascript" src="<%=contextPath %>extjs/ext-all.js"></script>

    <script type="text/javascript" src="<%=contextPath %>extjs/ext-lang-zh_CN.js"></script>

    <script type="text/javascript" src="<%=contextPath %>scripts/foothill-core.js"></script>

    <script type="text/javascript" src="<%=contextPath %>scripts/validator.js"></script>

    <script type="text/javascript" src="<%=contextPath %>scripts/datepicker/WdatePicker.js"></script>

    <script type="text/javascript" src="<%=contextPath %>scripts/Public.js"></script>

    <script type="text/javascript" src="<%=contextPath %>scripts/DocumentsManage/OrdersEdit.js"></script>

    <script type="text/javascript" src="<%=contextPath %>scripts/Print/Order.js"></script>

    <script type="text/javascript" src="<%=contextPath %>scripts/Print/MO.js"></script>

</head>
<body style="padding: 0px;">
    <form id="form1" runat="server">
    <table style="margin: 0px; width: 100%; height: 30px; border-bottom: 1px solid #8AC0D9;
        background: #BFEAFD;" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="7" style="background-image: url('../images/white-top-bottom.gif'); height: 24px;
                font-size: 13px; font-weight: bold; padding-left: 5px; border-bottom: 1px solid #8AC0D9;">
                订单编辑
            </td>
        </tr>
        <tr style="height: 30px;">
            <td style="padding-left: 7px;">
                <img src="../Images/add.png" style="border: 0px; cursor: pointer;" alt="add" title="点击添加行"
                    onclick="AddGridRow(true);" />
            </td>
            <td style="width: 80px; padding-left: 5px;">
                订单号(PO):
            </td>
            <td>
                <input type="text" id="txt_order_po" style="width: 92%;" onchange="UpdateOrdersInfo('orders','order_po',this.value);" />
            </td>
            <td style="width: 50px;">
                客户名:
            </td>
            <td>
                <div id="divClientInfo">
                </div>
                <input type="hidden" id="hid_client_id" />
            </td>
            <td style="width: 80px;">
                日期(DATE):
            </td>
            <td>
                <input type="text" id="txt_order_date" style="width: 92%;" onclick="WdatePicker();"
                    readonly="readonly" onchange="UpdateOrdersInfo('orders','order_date',this.value);" />
            </td>
        </tr>
    </table>
    <div id="divOrder_Main">
    </div>
    </form>
    <div style="position: fixed; right: 156px; top: 1px;">
        <input type="button" value="打印订单" id="btnPrintOrder" style="padding: 0px 13px; height: 22px;" />
    </div>
    <div style="position: fixed; right: 67px; top: 1px;">
        <input type="button" value="打印小单" id="btnPrintMO" style="padding: 0px 13px; height: 22px;" />
    </div>
    <div style="position: fixed; right: 2px; top: 1px;">
        <input type="button" value="完 成" id="btnSaveOrders" style="padding: 0px 13px; height: 22px;"
            onclick="javascript:window.location.href('OrdersList.aspx');" />
    </div>
</body>
</html>
